//
//  RatingTableViewCell.m
//  Recycling
//
//  Created by jzd on 2018/5/22.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "RatingTableViewCell.h"

@implementation RatingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setScore:(int)score{
    _score = score;
    
    if (score<=0 || score >5) {
        return;
    }
    
    for (int i = 2; i<2+score; i++) {
        UIImageView *v = [self.contentView.subviews objectAtIndex:i];
        v.image = [UIImage imageNamed:@"abc_ic_star"];
    }
}
@end
